package com.atme.micromall.member.service;


import com.atme.micromall.member.dto.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用points服务
 */
@FeignClient("MICRO-MALL-POINTS")
public interface ServicePointsFeignClient {

    @RequestMapping(value = "/points/create",method = RequestMethod.POST)
    CommonResult create(@RequestParam(value = "id") Integer id);


    @RequestMapping(value = "/points/update",method = RequestMethod.POST)
    CommonResult update(@RequestParam("id") Integer id,
                               @RequestParam("number") Integer number);

}
